package com.myy.purchase.controller;

import com.myy.common.entity.FebsConstant;
import com.myy.common.exception.RedisConnectException;
import com.myy.common.utils.FebsUtil;
import com.myy.monitor.entity.RedisInfo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


@Controller("purchase")
@RequestMapping(FebsConstant.VIEW_PREFIX + "purchase")
public class ViewController {


    @GetMapping("/warehouse")
    @RequiresPermissions("warehouse:view")
    public String warehouse(Model model){
        return FebsUtil.view("purchase/warehouse");
    }

    @GetMapping("/warehouseAdd")
    @RequiresPermissions("warehouse:add")
    public String warehouseAdd(Model model){
        return FebsUtil.view("purchase/warehouseAdd");
    }
}
